﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<nelech.Models.DBModel.Kupon>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ListKupon
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>רשימת קופונים</h2>

    <table>
        <tr>
            <th></th>
            <th>
               מס
            </th>
            <th>
                שם
            </th>
           
           
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("עריכה", "EditKupon", new { id=item.KuponId }) %> |
                <%= Html.ActionLink("לסל מחזור", "RecycleKupon", new { id = item.KuponId })%>
            </td>
            <td>
                <%= Html.Encode(item.KuponId) %>
            </td>
            <td>
                <%= Html.Encode(item.KuponName) %>
            </td>
           
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("צור חדש", "CreateKupon") %> | 
         <%= Html.ActionLink("לסל המחזור", "RecycleBinKupon")%>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

